home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / orbit-1.0 / orb / iop.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-20  |  5.5 KB  |  209 lines

  1. /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
  2.  
  3. /*
  4.  *  ORBit: A CORBA v2.2 ORB
  5.  *
  6.  *  Copyright (C) 1998 Richard H. Porter
  7.  *
  8.  *  This library is free software; you can redistribute it and/or
  9.  *  modify it under the terms of the GNU Library General Public
  10.  *  License as published by the Free Software Foundation; either
  11.  *  version 2 of the License, or (at your option) any later version.
  12.  *
  13.  *  This library is distributed in the hope that it will be useful,
  14.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  *  Library General Public License for more details.
  17.  *
  18.  *  You should have received a copy of the GNU Library General Public
  19.  *  License along with this library; if not, write to the Free
  20.  *  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  *
  22.  *  Author: Dick Porter <dick@cymru.net>
  23.  *
  24.  */
  25.  
  26. #ifndef _ORBIT_IOP_H_
  27. #define _ORBIT_IOP_H_
  28.  
  29. #include <ORBitutil/basic_types.h>
  30.  
  31. #include <orb/corba_basic_sequences_type.h>
  32.  
  33. #ifndef HAVE_CORBA_PRINCIPAL
  34. #define HAVE_CORBA_PRINCIPAL 1
  35. typedef CORBA_sequence_octet CORBA_Principal;
  36. #endif
  37.  
  38. typedef CORBA_unsigned_long IOP_ProfileId;
  39.  
  40. #define IOP_TAG_INTERNET_IOP 0
  41. #define IOP_TAG_MULTIPLE_COMPONENTS 1
  42. #define IOP_TAG_GENERIC_IOP    0x4f425400
  43. #define IOP_TAG_ORBIT_SPECIFIC 0xbadfaecal
  44.  
  45. typedef struct IOP_TaggedProfile {
  46.     IOP_ProfileId tag;
  47.     CORBA_sequence_octet profile_data;
  48. } IOP_TaggedProfile;
  49.  
  50. typedef struct CORBA_sequence_TaggedProfile {
  51.     CORBA_unsigned_long _maximum;
  52.     CORBA_unsigned_long _length;
  53.     IOP_TaggedProfile *_buffer;
  54. } CORBA_sequence_TaggedProfile;
  55.  
  56. typedef struct IOP_IOR {
  57.     CORBA_char *type_id;
  58.     CORBA_sequence_TaggedProfile profiles;
  59. } IOP_IOR;
  60.  
  61. typedef CORBA_unsigned_long IOP_ComponentId;
  62.  
  63. typedef struct IOP_TaggedComponent {
  64.     IOP_ComponentId tag;
  65.     CORBA_sequence_octet component_data;
  66. } IOP_TaggedComponent;
  67.  
  68. typedef struct CORBA_sequence_TaggedComponent {
  69.     CORBA_unsigned_long _maximum;
  70.     CORBA_unsigned_long _length;
  71.     IOP_TaggedComponent *_buffer;
  72. } CORBA_sequence_TaggedComponent;
  73.  
  74. typedef struct CORBA_sequence_TaggedComponent IOP_MultipleComponentProfile;
  75.  
  76. #define IOP_TAG_ORB_TYPE 0
  77. #define IOP_TAG_CODE_SETS 1
  78. #define IOP_TAG_SEC_NAME 14
  79. #define IOP_TAG_ASSOCIATION_OPTIONS 13
  80. #define IOP_TAG_GENERIC_SEC_MECH 12
  81.  
  82. typedef CORBA_unsigned_long IOP_ServiceId;
  83.  
  84. typedef struct IOP_ServiceContext {
  85.     IOP_ServiceId context_id;
  86.     CORBA_sequence_octet context_data;
  87. } IOP_ServiceContext;
  88.  
  89. typedef struct CORBA_sequence_ServiceContext {
  90.     CORBA_unsigned_long _maximum;
  91.     CORBA_unsigned_long _length;
  92.     IOP_ServiceContext *_buffer;
  93. } CORBA_sequence_ServiceContext;
  94.  
  95. typedef struct CORBA_sequence_ServiceContext IOP_ServiceContextList;
  96.  
  97. #define IOP_TransactionService 0
  98. #define IOP_CodeSets 1
  99.  
  100. typedef CORBA_unsigned_long CONV_FRAME_CodeSetId;
  101.  
  102. typedef struct CORBA_sequence_CodeSetId {
  103.     CORBA_unsigned_long _maximum;
  104.     CORBA_unsigned_long _length;
  105.     CONV_FRAME_CodeSetId *_buffer;
  106. } CORBA_sequence_CodeSetId;
  107.  
  108. typedef struct CONV_FRAME_CodeSetComponent {
  109.     CONV_FRAME_CodeSetId native_code_set;
  110.     CORBA_sequence_CodeSetId conversion_code_sets;
  111. } CONV_FRAME_CodeSetComponent;
  112.  
  113. typedef struct CONV_FRAME_CodeSetComponentInfo {
  114.     CONV_FRAME_CodeSetComponent ForCharData;
  115.     CONV_FRAME_CodeSetComponent ForWcharData;
  116. } CONV_FRAME_CodeSetComponentInfo;
  117.  
  118. typedef struct CONV_FRAME_CodeSetContext {
  119.     CONV_FRAME_CodeSetId char_data;
  120.     CONV_FRAME_CodeSetId wchar_data;
  121. } CONV_FRAME_CodeSetContext;
  122.  
  123. typedef struct GIOP_Version {
  124.     CORBA_octet major;
  125.     CORBA_octet minor;
  126. } GIOP_Version;
  127.  
  128. typedef enum {
  129.     GIOP_Request=0,
  130.     GIOP_Reply,
  131.     GIOP_CancelRequest,
  132.     GIOP_LocateRequest,
  133.     GIOP_LocateReply,
  134.     GIOP_CloseConnection,
  135.     GIOP_MessageError
  136. } GIOP_MsgType_1_0;
  137.  
  138. typedef struct GIOP_MessageHeader_1_0 {
  139.     CORBA_char magic[4];
  140.     GIOP_Version GIOP_version;
  141.     CORBA_boolean byte_order;
  142.     CORBA_octet message_type;
  143.     CORBA_unsigned_long message_size;
  144. } GIOP_MessageHeader_1_0;
  145.  
  146. typedef struct GIOP_MessageHeader_1_1 {
  147.     CORBA_char magic[4];
  148.     GIOP_Version GIOP_version;
  149.     CORBA_octet flags;
  150.     CORBA_octet message_type;
  151.     CORBA_unsigned_long message_size;
  152. } GIOP_MessageHeader_1_1;
  153.  
  154. typedef struct GIOP_RequestHeader_1_0 {
  155.     IOP_ServiceContextList service_context;
  156.     CORBA_unsigned_long request_id;
  157.     CORBA_boolean response_expected;
  158.     CORBA_sequence_octet object_key;
  159.     CORBA_char *operation;
  160.     CORBA_Principal requesting_principal;
  161. } GIOP_RequestHeader_1_0;
  162.  
  163. typedef struct GIOP_RequestHeader_1_1 {
  164.     IOP_ServiceContextList service_context;
  165.     CORBA_unsigned_long request_id;
  166.     CORBA_boolean response_expected;
  167.     CORBA_octet reserved[3];
  168.     CORBA_sequence_octet object_key;
  169.     CORBA_char *operation;
  170.     CORBA_Principal requesting_principal;
  171. } GIOP_RequestHeader_1_1;
  172.  
  173. typedef struct GIOP_SystemExceptionReplyBody {
  174.     CORBA_char *exception_id;
  175.     CORBA_unsigned_long minor_code_value;
  176.     CORBA_unsigned_long completion_status;
  177. } GIOP_SystemExceptionReplyBody;
  178.  
  179. typedef struct GIOP_CancelRequestHeader {
  180.     CORBA_unsigned_long request_id;
  181. } GIOP_CancelRequestHeader;
  182.  
  183. typedef struct GIOP_LocateRequestHeader {
  184.     CORBA_unsigned_long request_id;
  185.     CORBA_sequence_octet object_key;
  186. } GIOP_LocateRequestHeader;
  187.  
  188. typedef struct IIOP_Version {
  189.     CORBA_octet major;
  190.     CORBA_octet minor;
  191. } IIOP_Version;
  192.  
  193. typedef struct IIOP_ProfileBody_1_0 {
  194.     IIOP_Version iiop_version;
  195.     CORBA_char *host;
  196.     CORBA_unsigned_short port;
  197.     CORBA_sequence_octet object_key;
  198. } IIOP_ProfileBody_1_0;
  199.  
  200. typedef struct IIOP_ProfileBody_1_1 {
  201.     IIOP_Version iiop_version;
  202.     CORBA_char *host;
  203.     CORBA_unsigned_short port;
  204.     CORBA_sequence_octet object_key;
  205.     CORBA_sequence_TaggedComponent components;
  206. } IIOP_ProfileBody_1_1;
  207.  
  208. #endif /* !_ORBIT_IOP_H_ */
  209.